|
|
|
|
|
|
|
Figure 2.4
Visual Basic's design environment is the canvas for creating your application. |
|
|
|
|
|
|
|
|
First off, notice Visual Basic's title barspecifically, the word design. This means that you are in Design mode, also known as designtime, a name for the time you spend designing your program. Later, when you run your program, Visual Basic will be in Run mode. |
|
|
|
|
|
|
|
|
As you see, a new Standard EXE project consists of one form, or window, which will usually be your program's main user interface. Visual Basic applications are comprised of one or more components, such as forms, code modules and classes, along with controls and other components. |
|
|
|
|
|
|
|
|
Look at the Project Explorer (illustrated in Figure 2.5). It consists of a list of the contents of the current project. Because you've just begun this project, it only contains a single form named Form1, which is located in the Forms folder of the project (named Project1 by default). A project can grow to include many components; the Project Explorer helps keep them organized. |
|
|
|
|
|
|
|
|
Figure 2.5
The Project Explorer lists all the
components that make up a project. |
|
|
|
|
|
|
|
|
It's bound to happen eventuallyyour system crashes, the electricity goes out, or Fido kicks out your computer's power cord, and all your hard work is gone. To minimize your losses when something like this (inevitably) happens, you should get in the habit of saving your work to your hard disk as soon as you begin a new project, and then save it frequently as your application grows. At the very least, you should always save your application before running it. That |
|
|
|
|
|